package com.xunqi.ad.repository;

import com.xunqi.ad.entity.AdUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-29 15:10
 **/
public interface AdUserRepository extends JpaRepository<AdUser,Long> {

    /**
     * 根据用户名查询一个用户记录对象
     * @param username
     * @return
     */
    AdUser findByUsername(String username);

}
